package com.jsu.exhibitor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.model.common.dtos.ResponseResult;
import org.example.model.exhibitor.pojos.Exhibitor;
import org.springframework.web.multipart.MultipartFile;

public interface ExhibitorService extends IService<Exhibitor> {

    /**
     * 返回展商列表
     * @return exhibitor集合
     */
    ResponseResult getExhibitor();

    /**
     * 返回某一个展商的信息
     * @param id
     * @return exhibitor
     */
    ResponseResult getOneExhibitor(int id);

    /**
     * 新增展商信息
     * @param exhibitor
     * @return
     */
    ResponseResult addExhibitor(Exhibitor exhibitor);

    /**
     * 删除展商
     * @param id
     * @return
     */
    ResponseResult deleteExhibitor(Integer id);

    /**
     * 修改展商信息
     * @param exhibitor
     * @return
     */
    ResponseResult updateExhibitor(Exhibitor exhibitor);

    /**
     * 上传文件
     * @param file
     * @return
     */
    ResponseResult uploadExcel(MultipartFile file);

    /**
     * 导出文件
     * @param fileName
     * @return
     */
    ResponseResult exportExcel(String fileName);

    /**
     * 模糊查询展商
     * @param keyword
     * @return
     */
    ResponseResult searchExhibitor(String keyword);

    /**
     * 批量删除展商
     * @param ids
     * @return
     */
    ResponseResult batchDeleteExhibitor(Integer[] ids);

    /**
     * 获取所有展商
     * @return
     */
    ResponseResult getAllExhibitor();
}
